﻿using MobiSms.DataModel;
using System;
using System.Data.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MobiSms.ViewModel
{
    public class IDataContext : DataContext
    {
        public IDataContext(string fileOrConnection)
            : base(fileOrConnection)
        {
            if (!DatabaseExists())
            {
                CreateDatabase();
            }
        }

        public Table<SerialInfo> CollectionOfSerialNumbers;
        public Table<MessageInfo> CollectionOfMessages;
        public Table<MessageMobileInfo> CollectionOfMobiles;
        public Table<ReplyInfo> CollectionOfReplies;
    }
}
